package mvp.com.register.view;

import mvp.com.register.model.bean.User;

/**
 * Created by YoungerChen on 2016/9/13.
 */
public interface IRegisterView {

    void showProgressBar();
    void hideProgressBar();

    String getUsername();
    String getPassword();

    void showFailedError();
    void toMainActivity();

    void clearUsername();
    void clearPassword();

    interface OnRegisterListener {
        void registerSuccess(User user);
        void registerFailed();
    };

}
